<meta charset="utf-8">
<style type="text/css">
th {
    width: 9em;
}

tr, td {
    border: 1px #ADBFCD solid;
}
</style>
<!-- 进站 Start -->
<div style="width: 96%; margin: 0px auto;">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">进站</th>
            <th width="100">工段</th>
            <g:each in="${dateList}" status="i" var="headInstance">
                <th width="100">${headInstance.TRANS_TIME}</th>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${inHisQueryList}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <td>${dataInstance.STAGE_DESC}</td>
                <g:each in="${dateList}" status="j" var="headInstance">
                    <td>${dataInstance[headInstance.TRANS_TIME]}</td>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<!-- 进站 End -->
<!-- 出站 Start -->
<div style="width: 96%; margin: 20px auto;">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">出站</th>
            <th width="100">工段</th>
            <g:each in="${dateList}" status="i" var="headInstance">
                <th width="100">${headInstance.TRANS_TIME}</th>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${outHisQueryList}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <td>${dataInstance.STAGE_DESC}</td>
                <g:each in="${dateList}" status="j" var="headInstance">
                    <td>${dataInstance[headInstance.TRANS_TIME]}</td>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<!-- 出站 End -->
<!-- Hold Start -->
<div style="width: 96%; margin: 20px auto;">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">HOLD</th>
            <th width="100">工段</th>
            <g:each in="${dateList}" status="i" var="headInstance">
                <th width="100">${headInstance.TRANS_TIME}</th>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${holdHisQueryList}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <td>${dataInstance.STAGE_DESC}</td>
                <g:each in="${dateList}" status="j" var="headInstance">
                    <td>${dataInstance[headInstance.TRANS_TIME]}</td>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<!-- Hold End -->
<!-- Rework Start -->
<div style="width: 96%; margin: 20px auto;">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">返工</th>
            <th width="100">工段</th>
            <g:each in="${dateList}" status="i" var="headInstance">
                <th width="100">${headInstance.TRANS_TIME}</th>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${reworkHisQueryList}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <td>${dataInstance.STAGE_DESC}</td>
                <g:each in="${dateList}" status="j" var="headInstance">
                    <td>${dataInstance[headInstance.TRANS_TIME]}</td>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<!-- Rework End -->
<!-- Scrap Start -->
<div style="width: 96%; margin: 20px auto;">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">报废</th>
            <th width="100">工段</th>
            <g:each in="${dateList}" status="i" var="headInstance">
                <th width="100">${headInstance.TRANS_TIME}</th>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${scrapHisQueryList}" status="i" var="dataInstance">
            <tr>
                <td>${i + 1}</td>
                <td>${dataInstance.STAGE_DESC}</td>
                <g:each in="${dateList}" status="j" var="headInstance">
                    <td>${dataInstance[headInstance.TRANS_TIME]}</td>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<!-- Scrap End -->